import requests
import config
from api.login import *

def add_shoppingCart(token,goodsId, number,productId):

    url_login = f'{config.URL}/wx/cart/add'
    headers_data = {
        'X-Litemall-Token': token,
        'Content-Type': 'application/json'
    }
    test_data = {
        'goodsId': goodsId,
        'number': number,
        'productId': productId
    }
    return requests.post(url=url_login, headers=headers_data, json=test_data)
